import axios from ".";

export const Login = (ruleForm: { userNameOrEmail: string; password: string }) => {
	return axios.post("/noauth/login", ruleForm);
};
export const getUserinfo = (token: string) => {
	return axios.get("/user/getuserinfo", { headers: { Authorization: `Bearer ${token}` } });
};
